#include <iostream>
#include "MyMap.h"
#include "MySet.h"
using namespace std;

void testMap1()
{
	mymap::map<int, int> dict;
	dict.insert(make_pair(1, 1));
	dict.insert(make_pair(2, 1));
	dict.insert(make_pair(3, 1));
	dict.insert(make_pair(4,1));
	
	for (auto& e : dict)
	{
		//e.first++;
		cout << e.first << " ";
	}
	cout << endl;
}

void testSet1()
{
	myset::set<int> st;
	st.insert(1);
	st.insert(3);
	st.insert(2);
	auto it = st.begin();
	while (it != st.end())
	{
		//(*it)++;
		cout << *it << " ";
		++it;
	}
	cout << endl;
}

int main()
{
	testSet1();
	testMap1();
	return 0;
}
